import cv2
#导入
img = cv2.imread("img/111.jpg")
#降维
# #img = cv2.cvtColor(img, code=cv2.COLOR_BGR2GRAY)
#调整尺寸
# #img=cv2.resize(img,dsize=(900,500))
#等比例缩放
img = cv2.resize(img, None, fx=0.3, fy=0.3)
print(type(img), img.shape)
cv2.imshow("111", img)
#1秒=1000毫秒，0是永久停留
cv2.waitKey(3000)
cv2.destroyAllWindows()
